import { Module } from '@nestjs/common';
import { RedisService } from './redis.service';
import { OperationLoggerService } from '../../services/operation-logger.service';
import { RedisModule as IORedisModule } from '@nestjs-modules/ioredis';
import { redisConfig } from '../../config/redis.config';

@Module({
  imports: [
    IORedisModule.forRoot(redisConfig)
  ],
  providers: [RedisService, OperationLoggerService],
  exports: [RedisService],
})
export class RedisModule {}

